package cn.alcatraz.system.mapper;

import cn.alcatraz.system.domain.Role;
import cn.alcatraz.basic.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author alcatraz
 * @since 2022-07-11
 */
public interface RoleMapper extends BaseMapper<Role> {

    void deleteRoleMenu(Long roleId);

    void deleteRolePermission(Long roleId);

    void saveRoleMenu(@Param("roleId") Long rId, @Param("ids") List<Long> menus);

    void saveRolePermission(@Param("roleId") Long rId, @Param("ids") List<Long> permissions);

}
